package sortieren;

public class TimingTester {
  public static void main(String[] args){
    for(int i=1; i<20; ++i){
      int len=1000*i;
      int[] werte=new int[len];
      for(int j=0; j<len; ++j)
        werte[j]=(int)(Math.random()*10*len);
      System.gc();
      long time=System.nanoTime();
      MergeSort.sortiere(werte);
      time=System.nanoTime()-time;
      System.out.println(len+"\t"+time);
    }
  }
}
